<template>
	<view class="container">
		<image class="img1" src="@/static/img/images/paySussess.png"></image>
		<view class="txts" v-if="fail">{{ failmsg }}</view>
		<view class="txts" v-else>
		{{ordertype==0?'订单支付成功':'保证金支付成功'}}	
			<text class="txts1" >￥{{ msg.actual_payment }}</text>
		</view>
		<view class="content">
			<view class="item" v-if="!fail">
				<view>交易流水号</view>
				<view class="text-line right" v-if="JSON.stringify(msg) !== '{}'">
					<text v-if="type == 0">{{ msg.trade_no }}</text>
					<text v-if="type == 1">{{ msg.transaction_id }}</text>
					<text v-if="type == 2">{{ msg.serial_number }}</text>
				</view>
			</view>
			<view class="item">
				<view>交易方式</view>
				<view class="right">
					<text v-if="type == 0">支付宝</text>
					<text v-if="type == 1">微信</text>
					<text v-if="type == 2">余额</text>支付
				</view>
			</view>
			<view class="item" v-if="!fail">
				<view>交易时间</view>
				<view class="right" v-if="JSON.stringify(msg) !== '{}'">{{ msg.endtime }}</view>
			</view>
		</view>
		<view class="footer"><button class="goPay" @click="goOrderList">查看详情</button></view>
	</view>
</template>

<script src="./paySuccess.js"></script>
<style src="./paySuccess.scss" lang="scss"></style>
